package com.albaba.designpattern.mediator.text_001;

/**
 * @Description: 具体同事类
 * @Author zx
 * @Date 2025/3/3 16:36
 * @Version 1.0
 */
public class ConcreteColleagueA extends Colleague{

    public ConcreteColleagueA(Mediator mediator) {
        super(mediator);
    }

    @Override
    public void exec(String key) {
        System.out.println("在A同事中，通过中介者执行！");
        getMediator().apply(key);
    }

}
